﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="ThongTinThanhVien.aspx.cs" Inherits="DM.Web.Admin.ThôngTinThanhVien" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="divInf" style="width:100%;" runat="server">
    <h1>Thông tin chi tiết tài khoản</h1>
    <table style="border: none;margin: 30px 0  0 150px;">
        <tr>
            <td style="width: 100px;"><b>Tên đăng nhập:</b></td>
            <td  style="width:150px;color:red"><asp:Label ID="lbTenDangNhap" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><b>Họ tên:</b></td>
            <td style="color:red"><asp:Label ID="lbHoTen" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><b>Điện thoại:</b></td>
            <td style="color:red"><asp:Label ID="lbDienThoai" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><b>Di động:</b></td>
            <td style="color:red"><asp:Label ID="lbDiDong" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><b>Email:</b></td>
            <td style="color:red"><asp:Label ID="lbEmail" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td><b>Địa chỉ:</b></td>
            <td style="color:red"><asp:Label ID="lbDiaChi" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:Button ID="btnChP" runat="server" Text="Đổi mật khẩu" OnClick="btnChP_Click"/>
                <asp:Button ID="btnExit"  runat="server" Text="Thoát" OnClick="btnExit_Click"/>
            </td>
        </tr>
    </table>
</div>
<div id="divChP" runat="server" style="width:100%;">
    <h1>Thay đổi mật khẩu</h1>
    <table style="border:none; margin: 30px 0 0 150px">
        <tr>
            <td style="width: 150px"><b>Tài khoản</b></td>
            <td style="width: 150px"><asp:Label ID="lbTaiKhoan" runat="server"></asp:Label></td>
            <td style="width: 150px"></td>
        </tr>
        <tr>
            <td><b>Mật khẩu cũ</b></td>
            <td><asp:TextBox ID="txtOldPW" Width="150px" runat="server" TextMode="Password"></asp:TextBox></td>
            <td><%--<asp:RequiredFieldValidator id="rfvOldPW" runat="server" ControlToValidate="txtOldPW" ValidationGroup="Group1" Text="*"></asp:RequiredFieldValidator>--%></td>
        </tr>
        <tr>
            <td><b>Mật khẩu mới</b></td>
            <td><asp:TextBox ID="txtNewPW" Width="150px" runat="server" TextMode="Password"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator id="rfvNewPW" runat="server" ControlToValidate="txtNewPW" ValidationGroup="Group1" Text="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><b>Nhắc lại mật khẩu mới</b></td>
            <td><asp:TextBox ID="txtNewPW2" Width="150px" runat="server" TextMode="Password"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator id="rfvNewPW2" runat="server" ControlToValidate="txtNewPW2" ValidationGroup="Group1" Text="*"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="cvNewPW2" runat="server" ControlToValidate="txtNewPW2" ControlToCompare="txtNewPW" ValidationGroup="Group1" Text="Mật khẩu không trùng!"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td colspan="3" align="center">
                <asp:Button ID="btnChange" runat="server" Text="Thay đổi" CausesValidation="true" ValidationGroup="Group1" OnClick="btnChange_Click"/>
                <asp:Button ID="btnThoat" runat="server" Text="Thoát" OnClick="btnThoat_Click" />
            </td>
        </tr>
    </table>
</div>
</asp:Content>
